home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / dvivga9.zip / GETBYTES.H < prev    next >
Text File  |  1988-05-30  |  504b  |  19 lines

  1. /* -*-C-*- getbytes.h */
  2. /*-->getbytes*/
  3. /**********************************************************************/
  4. /****************************** getbytes ******************************/
  5. /**********************************************************************/
  6.  
  7. void
  8. getbytes(fp, cp, n)    /* get n bytes from file fp */
  9. register FILE *fp;    /* file pointer     */
  10. register char *cp;    /* character pointer */
  11. register BYTE n;    /* number of bytes */
  12.  
  13. {
  14.     while (n--)
  15.     *cp++ = (char)getc(fp);
  16. }
  17.  
  18.  
  19.